JB

Joshua Bloch

10quotes

Quotes by Joshua Bloch

"
Writing concurrent programs in Java keeps getting easier, but writing concurrent programs that are correct and fast is as difficult as it ever was.
"
Collection or an appropriate subtype is generally the best return type for a public, sequence- returning method.
"
The cleaner and nicer the program, the faster it’s going to run. And if it doesn’t, it’ll be easy to make it fast.
"
It is hard to write even the smallest piece of code correctly.
"
When you choose a language, you’re choosing more than a set of technical trade-offs-you’re choosing a community.
"
When in doubt, leave it out.
"
Builder pattern is more verbose than the telescoping constructor pattern, so it should be used only if there are enough parameters, say, four or more.
"
A second advantage of static factory methods is that, unlike constructors, they are not required to create a new object each time they're invoked.
"
One advantage of static factory methods is that, unlike constructors, they have names.
"
Learning the art of programming, like most other disciplines, consists of first learning the rules and then learning when to break them.